/**
 * @author Administrator
 */
var dummyPlayers = {
    d000: {
        nickname: "選手A",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d001: {
        nickname: "選手B",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d002: {
        nickname: "選手C",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d003: {
        nickname: "選手D",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d004: {
        nickname: "選手E",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d005: {
        nickname: "選手F",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d006: {
        nickname: "選手G",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d007: {
        nickname: "選手H",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d008: {
        nickname: "選手I",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    },
    d009: {
        nickname: "選手J",
        url: SERVER_NAME + "icons/dummy.gif",
        hasApp: "true"
    }
};

function fillDummyPlayer(lackNum){
    var dummyInfo;
    var playerInfo;
    var i = 0;
    var tmpIDList = new Array();
    for (id in dummyPlayers) {
		playerInfo = new Object();
        tmpIDList.push(id);
        playerInfo[NICKNAME] = dummyPlayers[id][NICKNAME];
        playerInfo[URL] = dummyPlayers[id][URL];
        playerInfo[HASAPP] = dummyPlayers[id][HASAPP];
        playersList[id] = playerInfo;
        i += 1;
        if (i == lackNum) {
            return tmpIDList;
        }
        
    }
}
